package arm.dic.entity;

import arm.common.entity.ABaseEntity;

import javax.persistence.*;

@Entity
@Table (name = "DIC_NORMI")
public class DicNormi extends ABaseEntity
{
    private DicMetricType dicMetricType;
    private DicPeriod dicPeriod;
    private DicCategory dicCategory;
    private Integer maxdim;
    private Integer mindim;

    @Basic
    @Column(name = "MAX_DIMENSION")
    public Integer getMaxdim() {
        return maxdim;
    }

    public void setMaxdim(Integer maxdim) {
        this.maxdim = maxdim;
    }

    @Basic
    @Column(name = "MIN_DIMENSION")
    public Integer getMindim() {
        return mindim;
    }

    public void setMindim(Integer mindim) {
        this.mindim = mindim;
    }

    @ManyToOne
    @JoinColumn(name = "DIC_PERIOD_ID")
    public DicPeriod getDicPeriod() {
        return dicPeriod;
    }

    public void setDicPeriod(DicPeriod dicPeriod) {
        this.dicPeriod = dicPeriod;
    }

    @ManyToOne
    @JoinColumn(name = "DIC_METRIC_TYPE_ID")
    public DicMetricType getDicMetricType() {
        return dicMetricType;
    }

    public void setDicMetricType(DicMetricType dicMetricType) {
        this.dicMetricType = dicMetricType;
    }

    @ManyToOne
    @JoinColumn(name = "DIC_CATEGORY_ID")
    public DicCategory getDicCategory() {
        return dicCategory;
    }

    public void setDicCategory(DicCategory dicCategory) {
        this.dicCategory = dicCategory;
    }
}


